<h3>新建配置</h3>

<% form_for(@webconfig) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :name ,"标志名" %>
    <%= f.text_field :name %>*
  </p>
  <p>
    <%= f.label :description ,"描述" %>
    <%= f.text_field :description %>*
    <%=f.hidden_field :style,:value=>params[:style]%>
  </p>  
  <p>
    <%= f.label :content ,"内容" %>
    <%= render :partial=>"articles/online_editor",:locals=>{:hidden_name=>"webconfig[content]",:content=>nil,:identity_id=>nil} %>
  </p>
  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', webconfigs_path(:style=>params[:style]) %>
<fieldset class="demo">
  <LEGEND>操作说明：</LEGEND>
  <p>
    添加网站配置,*为必填项。
  </p>
</fieldset>
